package xyz.coolcsm.security.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xyz.coolcsm.security.entity.Say;
import xyz.coolcsm.security.mapper.SayMapper;
import xyz.coolcsm.security.service.SayService;

import java.util.List;
/**
 * @author 什锦
 * @since 2021-06-1
 */
@Service
public class SayserviceImpl extends ServiceImpl<SayMapper, Say> implements SayService {

    @Autowired
    SayMapper sayMapper;

    @Override
    public List<Say> listByMonth(String time) {
        return sayMapper.listByMonth(time);
    }

    @Override
    public List<Say> listByYear(String time) {
        return listByMonth(time);
    }
}
